package cn.schoolwow.util.test.module.query.instanceList.testcase;

import cn.schoolwow.quickflow.domain.FlowContext;
import cn.schoolwow.quickflow.flow.BusinessFlow;
import cn.schoolwow.util.test.module.query.instanceList.flow.query.*;

public class InstanceQueryTestCaseFlow implements BusinessFlow {
    @Override
    public void executeBusinessFlow(FlowContext flowContext) throws Exception {
        flowContext.startFlow(new initialUserListInstanceDataFlow())
                .next(new InstanceQueryGetOneFlow())
                .next(new InstanceQueryListFlow())
                .next(new InstanceQuerySingleFieldFlow())
                .next(new InstanceSingleValueQueryFlow())
                .next(new InstanceQueryNotInFieldFlow())
                .next(new InstanceQueryOrderByFieldNameFlow())
                .execute();
    }

    @Override
    public String name() {
        return "实例-查询测试用例";
    }
}
